package com.trs.publish.exception;

import java.util.HashMap;
import java.util.Map;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.google.gson.Gson;

/**
 * @author jiahaihong
 *
 */
public class BusinessException extends RuntimeException{

	private Integer code;

	public BusinessException(ErroCode erroCode) {
		super(erroCode.getMsg());
		this.code = code;
	}

	public Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}
}
